package indi.zhifa.recipe.bailan.framework.auth.entity;

import indi.zhifa.recipe.bailan.framework.auth.entity.dto.TokenAuthNodeDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
public abstract class BaseTokenObject {
    /**
     * 用户Id
     */
    @Schema(name = "用户Id")
    private Long id;
    /**
     * 用户命
     */
    @Schema(name = "用户账号")
    private String name;
    /**
     * ip
     */
    @Schema(name = "ip")
    private String remoteIp;
    /**
     * 所处部门信息
     */
    @Schema(name = "所处鉴权节点信息")
    private Map<String, TokenAuthNodeDto> authNodeInfo;

    /**
     * 密码过期时间
     */
    @Schema(name = "密码过期时间")
    private LocalDateTime passwdExpireTime;

    /**
     * 角色
     */
    @Schema(name = "角色")
    private List<String> roles;
}
